package summer_vacation.qiuyangyang;
import java.util.Scanner;
/**
 * Created by Administrator on 2015/9/4 0004.
 */
public class Assignment_01 {
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        System.out.println("请输入10个任意的整数:");
        int max=Integer.MIN_VALUE;
        int min=Integer.MAX_VALUE;
        for (int i=1;i<=10;i++){
            int j=input.nextInt();
            if(max<j) max=j;
            if(min>j) min=j;
        }
        System.out.println("其最大值为"+max);
        System.out.println("其最小值为"+min);
    }
}
